package io.renren.modules.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
import io.renren.modules.app.entity.ImGroupEntity;
import io.renren.modules.app.entity.UserEntity;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-05-19 09:14:52
 */
public interface ImGroupService extends IService<ImGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<ImGroupEntity> getList(UserEntity user);

    Map<String,Object> create(UserEntity user ,Map<String,String []> map) throws Exception;

    R info(UserEntity user ,Integer id);

    R update(UserEntity user, ImGroupEntity imGroup);

    R nickname(UserEntity user, ImGroupEntity imGroup);

    R remark(UserEntity user, ImGroupEntity imGroup);

    R quit(UserEntity user, ImGroupEntity imGroup);

    R invite(UserEntity user, ImGroupEntity imGroup);

    R kickoff(UserEntity user, ImGroupEntity imGroup);

    R check(UserEntity user, ImGroupEntity imGroup);
}

